﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Administrator/Views/Shared/Hikari.Master"
    Inherits="System.Web.Mvc.ViewPage<Hikari.Areas.Administrator.Models.iCategory>" %>

<%@ Import Namespace="System.Web.Mvc.Html" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="wrap">
        <div id="icon-edit" class="icon32">
            <br />
        </div>
        <h2>
            Thêm mới danh mục</h2>
        <% using (Html.BeginForm())
           {%>
        <%= Html.ValidationSummary(true) %>
        <div class="form-wrap">
            <table class="form-table">
                <tbody>
                    <tr valign="top">
                        <th scope="row">
                            <label for="blogname">
                                Tên danh mục</label>
                        </th>
                        <td>
                            <%= Html.TextBoxFor(model => model.Name, new { @class = "regular-text code" })%>
                            <%= Html.ValidationMessageFor(model => model.Name) %>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row">
                            <label for="blogdescription">
                                Tag</label>
                        </th>
                        <td>
                            <%= Html.TextBoxFor(model => model.Tag, new { @class = "regular-text code" })%>
                            <%= Html.ValidationMessageFor(model => model.Tag) %>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row">
                            <label for="siteurl">
                                Meta title</label>
                        </th>
                        <td>
                            <%= Html.TextBoxFor(model => model.MetaTitle, new { @class = "regular-text code" })%>
                            <%= Html.ValidationMessageFor(model => model.MetaTitle) %>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row">
                            <label for="home">
                                Meta Description</label>
                        </th>
                        <td>
                            <textarea name="MetaDescription" id="MetaDescription" class="large-text code" rows="6"></textarea>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row">
                            <label for="admin_email">
                                Meta Keywords</label>
                        </th>
                        <td>
                            <%= Html.TextBoxFor(model => model.MetaKeywords, new { @class = "regular-text code" })%>
                            <%= Html.ValidationMessageFor(model => model.MetaKeywords) %>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row">
                            <label for="admin_email">
                                Thứ tự hiển thị</label>
                        </th>
                        <td>
                            <%= Html.TextBoxFor(model => model.Ordinal, new { @class = "small-text", @Value = "0" })%>
                            <%= Html.ValidationMessageFor(model => model.Ordinal) %>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row">
                            <label for="admin_email">
                                Đường dẫn</label>
                        </th>
                        <td>
                            <%= Html.TextBoxFor(model => model.Prefix, new { @class = "regular-text code" })%>
                            <%= Html.ValidationMessageFor(model => model.Prefix) %>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row">
                            <label for="admin_email">
                                Ưu tiên</label>
                        </th>
                        <td>
                            <%= Html.TextBoxFor(model => model.PriorityShow, new { @class = "small-text", @Value = "0" })%>
                            <%= Html.ValidationMessageFor(model => model.PriorityShow) %>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row">
                            <label for="admin_email">
                                Ảnh logo</label>
                        </th>
                        <td>
                            <%= Html.TextBoxFor(model => model.Avatar, new { @class = "regular-text code" })%>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row">
                            <label for="admin_email">
                                Mô tả</label>
                        </th>
                        <td>
                            <textarea name="Descriptions" id="Descriptions" class="large-text code" rows="6"></textarea>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row">
                            <label for="default_role">
                                Nhóm danh mục</label>
                        </th>
                        <td>
                            <%=Html.DropDownList("Type", (IEnumerable<SelectListItem>)ViewData["itemsType"])%>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">
                            <label for="start_of_week">
                                Danh mục</label>
                        </th>
                        <td>
                            <%= Html.DropDownList("ParentID", (IEnumerable<SelectListItem>)ViewData["Cate"])%>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row">
                            Hiển thị
                        </th>
                        <td>
                            <fieldset>
                                <legend class="screen-reader-text"><span>Trạng thái</span></legend>
                                <label for="users_can_register">
                                    <%=Html.CheckBoxFor(m => m.Enable, new { @checked = "checked" })%>
                                    Có/Không</label>
                            </fieldset>
                        </td>
                    </tr>
                </tbody>
            </table>
            <p class="submit">
                <input type="submit" class="button" name="submit" id="submit" value="Thêm mới" /></p>
        </div>
        <% } %>
    </div>
</asp:Content>
